package com.example.childrendapp.menu;

import com.example.childrendapp.R;
import com.example.childrendapp.SplashActivity;
import com.example.childrendapp.StartGame;
import com.example.childrendapp.gamefunny.AppStartGame;
import com.example.childrendapp.help.AppHelp;
import com.example.childrendapp.highscore.AppHighScore;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AppMenuChoice extends Activity implements OnClickListener {
	private Button btnStart, btnHighScore, btnHelp, btnGame, btnExit;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.layout_app_menuchoice);
		btnStart = (Button) findViewById(R.id.btn_start);
		btnStart.setOnClickListener(this);

		btnHighScore = (Button) findViewById(R.id.btn_highscore);
		btnHighScore.setOnClickListener(this);

		btnHelp = (Button) findViewById(R.id.btn_help);
		btnHelp.setOnClickListener(this);

		btnGame = (Button) findViewById(R.id.btn_game);
		btnGame.setOnClickListener(this);

		btnExit = (Button) findViewById(R.id.btn_exit);
		btnExit.setOnClickListener(this);
		super.onCreate(savedInstanceState);

	}

	@Override
	public void onClick(View v) {
		if (v == btnStart) {
			Intent next = new Intent(this, SplashActivity.class);
			startActivity(next);
		}
		if (v == btnGame) {
			Intent next = new Intent(this, AppStartGame.class);
			startActivity(next);
		}
		if (v == btnHighScore) {
			Intent next = new Intent(this, AppHighScore.class);
			startActivity(next);
		}
		if (v == btnHelp) {
			Intent next = new Intent(this, AppHelp.class);
			startActivity(next);
		}

	}

}
